Repository navigation
Report why a simulation setup library cannot be loaded - #16089
Merged
Merged
Conversation
sawenzel
force-pushed
the
swenzel/g4-static-tls
branch
2 times, most recently
from
November 9, 2026 14:29
609f085 to
f0e2ce6
Compare
This replaces the asserts in execFromPlugin by fatal messages with the reason. - A failed dlopen of libO2G4Setup and friends stopped at assert(libHandle), without the error from dlerror(). - The message now gives the dlopen error, e.g. a missing static TLS reserve for Geant4 built with the initial-exec TLS model. - The library is opened once, with the platform suffix from DLLoaderBase.h. - A fair::FatalException follows the fatal message, since LOG(fatal) ends the process only when a fatal handler is installed. https://its.cern.ch/jira/browse/O2-7305 Co-Authored-By: Claude Opus 5.5 <[email protected]>
sawenzel
force-pushed
the
swenzel/g4-static-tls
branch
from
November 9, 2026 14:39
f0e2ce6 to
60561f6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A failed dlopen of the engine setup library (
libO2G4Setupand friends) stopped atassert(libHandle), without saying why. The message now gives the dlopen error, for example when Geant4 is built with the initial-exec TLS model and the static TLS reserve is too small:The library is opened once, with the platform suffix from
DLLoaderBase.h. Afair::FatalExceptionfollows the fatal message, becauseLOG(fatal)ends the process only when a fatal handler is installed.https://its.cern.ch/jira/browse/O2-7305
Assisted by Claude Code.